package com.zp.self.module.eventBus.config;

import com.google.common.eventbus.Subscribe;
import com.zp.self.module.eventBus.bean.MessageEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class EventListener {

    @Subscribe
    public void onMessageEvent(MessageEvent event) {
        log.info("Subscribe message:{}", event);
    }

}